From: Georges Basile Stavracas Neto Date: Mon, 25 May 2020 19:51:26 +0000 (-0300) Subject: pageIndicator: Add getter for current number of pages X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~221 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1e77e6fc79efd2f4f1e02eb42095921cdb6cebd5;p=gnome-shell.git pageIndicator: Add getter for current number of pages Add a getter to PageIndicators to retrieve the number of pages it currently displays. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1271 --- diff --git a/js/ui/pageIndicators.js b/js/ui/pageIndicators.js index 09186ed2c..8ac44d4b2 100644 --- a/js/ui/pageIndicators.js +++ b/js/ui/pageIndicators.js @@ -120,6 +120,10 @@ var PageIndicators = GObject.registerClass({ for (let i = 0; i < children.length; i++) this._updateIndicator(children[i], i); } + + get nPages() { + return this._nPages; + } }); var AnimatedPageIndicators = GObject.registerClass(